using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace QFramework.Example
{
    public class ShopConfig : MonoBehaviour
    {
        public List<ShopBuyItem> BuyItems;
        public List<ShopSellItem> SellItems;
        
        [DisplayLabel("商店名")]
        public string ShopName;
		
        /// <summary>
        /// 商店购买项
        /// </summary>
        [Serializable]
        public class ShopBuyItem
        {
            public Item Item;
            public int Price;
            public Func<int> PriceGetter;// 价格动态变化
        }
		
        /// <summary>
        /// 商店出售项
        /// </summary>
        [Serializable]
        public class ShopSellItem
        {
            public Item Item;
            public int Price;
            //public Func<int> PriceGetter;
        }
        
       
    }
}
